package com.tk.exam.vo.exam;

import com.tk.exam.domain.TkExamInfo;
import com.tk.exam.utils.DateUtils;
import lombok.Data;

import java.beans.Transient;
import java.util.Date;
import java.util.Objects;

@Data
public class SearchExamListRespVo extends TkExamInfo {
    private String paperName;
    private String className;

    public String getUpTime() {
        return Objects.nonNull(super.getUpdateTime())? DateUtils.parseTimesTampDate(super.getUpdateTime()):null;
    }
    public String getCreTime(){
        return Objects.nonNull(super.getCreateTime())?DateUtils.parseTimesTampDate(super.getCreateTime()):null;
    }

    public String getExTime(){
        return Objects.nonNull(super.getExamTime())?DateUtils.parseTimesTampDate(super.getExamTime()):null;
    }

//    @Transient
//    public Date getExamTime(){
//        return null;
//    }
//
//    @Transient
//    public Date getUpdateTime(){
//        return null;
//    }
//
//    @Transient
//    public Date getCreateTime(){
//        return null;
//    }
}
